<template>
    <view id="main">
        <view class="content">
            <view class="title fs_18 color_black">已配对的设备</view>
            <view class="card">
                <view v-for="(item, index) in 3" class="item flex">
                    <image src="@/static/img/db.png" />
                    <view class="value">
                        <view class="name">Monster</view>
                        <view v-if="index == 0" class="Loading">
                            正在连接...
                        </view>
                    </view>
                </view>
            </view>
            <view class="more flex">
                <view class="fs_17 fw_700">更多</view>
                <uni-icons type="bottom" color="#1D2541" size="20" />
            </view>
            <view class="title fs_18 color_black">可用设备</view>
            <view class="card">
                <view v-for="(item, index) in 2" class="item flex">
                    <image src="@/static/img/db.png" />
                    <view class="value">
                        <view class="name">Monster</view>
                    </view>
                </view>
            </view>
            <view class="footer">
                <image class="mini_Icon" src="@/static/img/sm.png" />
                <view class="fs_14 color_black fw_700">扫描</view>
            </view>
        </view>
    </view>
</template>

<script lang="ts" setup>
import { onLoad } from '@dcloudio/uni-app';
const currentData = reactive({});
onLoad((options: any) => {
});
</script>

<style lang="scss" scoped>
#main {
    position: relative;
}

.content {
    padding: 14px;
    width: 100vw;

    .title {
        margin: 10px 0;
    }

    .card {
        border-radius: 4px;
        margin: 0 0 20px 0;
        position: relative;
        padding: 10px 20px;

        .item {
            align-items: center;
            border-bottom: 1px solid #eee;
            padding: 16px 0;
            font-size: 14px;

            &:last-child {
                border-bottom: none;
            }


            image {
                width: 20px;
                height: 20px;
                margin-right: 10px;
            }


            .value {
                display: flex;
                flex-direction: column;

                .name {
                    font-size: 18px;
                    font-weight: 700;
                    color: #1D2541;
                }

                .Loading {
                    color: #8A8FA2;
                    font-size: 15px;
                    font-weight: 700;
                }
            }
        }
    }

    .more {
        justify-content: center;

        .fw_700 {
            margin-right: 10px;
        }
    }

    .footer {
        position: absolute;
        bottom: 10px;
        left: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        .mini_Icon {
            margin-bottom: 4px;
        }
    }
}
</style>
